package ooday02;

public class ExtendsTest {
    public static void main(String[] args) {


        Student zs = new Student("张三", 24, "北京海淀", "jsd2302", "001");
        zs.eat();
        zs.sleep();
        zs.sayHi();
        zs.study();

        Teacher ls = new Teacher("李四", 30, "北京朝阳", 10000);
        ls.eat();
        ls.sleep();
        ls.sayHi();
        ls.teach();

        Doctor ww = new Doctor("王五",32,"北京","医师");
        ww.eat();
        ww.sleep();
        ww.sayHi();
        ww.cut();
    }
}
